//配置接口请求地址
class Config {

  // 测试环境
  test = {
    baseApi: 'http://localhost:8080/api',
    imgApi: 'http://localhost:8080/',


  }
  // 线上环境
  prod = {
    baseApi: 'http://wescrm.3thousand.top/api',
    imgApi: 'http://wescrm.3thousand.top/',

  }


  // 1测试环境,2线上环境,
  server_type = 1


  baseUrl = {
    baseApi: '',
    imgApi: ''
  }

  constructor() {
    this.initBaseUrl();
  }

  initBaseUrl() {
    switch (this.server_type) {
      case 1:
        this.baseUrl = this.test
        break
      case 2:
        this.baseUrl = this.prod
        break
    }
  }


}

export default new Config()